import http from '@/utils/request.js';
// 获取个人信息详情
export const detail = (data) => {
	// return http.get('/blade-user/detail', data);
	return http.request({
		url: '/blade-user/detail',
		method: 'get',
		data,
	});
};
// 修改个人信息
export const update = (data) => {
	// return http.post('/blade-user/update',data,true);
	return http.request({
		url: '/blade-user/update',
		method: 'post',
		data,
		textJson: true,
	});
};
// 获取字典
export const getDict = (data) => {
	// return http.get('/repair/home/user/dict', data);
	return http.request({
		url: '/repair/home/user/dict',
		method: 'get',
		data,
	});
};
// 获取树形字典
export const getSystemTree = (data) => {
	// return http.get('/blade-system/dict/dictionary-tree', data);
	return http.request({
		url: '/blade-system/dict/dictionary-tree',
		method: 'get',
		data,
	});
};
// 修改用户头像
export const updateAvatar = (data) => {
	// return http.post('/blade-user/update/avatar', data, true);
	return http.request({
		url: '/blade-user/update/avatar',
		method: 'post',
		data,
		textJson: true,
	});
};